<?php

$arrConst =	Efy_Init_Const::_setProjectPublicConst();
$arrStaffPermission = $_SESSION['arrStaffPermission'];
$sAdministratorSystem = ""; $sAdministratorSystem1 = "";$sAdministratorSystem2 = "";
?>
<ul>
	<!--Tiếp nhận-->
        <?php $urlRe = $this->baseUrl . "../M01/05";?>
        <li id="Tiep_nhan" href="<?=$urlRe;?>"  onclick="selectHead('<?=$urlRe;?>','Tiep_nhan','05')" >Tiếp nhận</li>
        <!--Tham mưu-->
        <?php $urlRe = $this->baseUrl . "../M02/06";?>
        <li id="Tham_muu" href="<?=$urlRe;?>"  onclick="selectHead('<?=$urlRe;?>','Tham_muu','06')" >Tham mưu</li>
        <!--Thụ lý-->
        <?php $urlRe = $this->baseUrl . "../M03/16";?>
        <li id="thu_ly" href="<?=$urlRe;?>"  onclick="selectHead('<?=$urlRe;?>','thu_ly','16')" >Thụ lý</li>
        <!--Phê duyệt-->
        <?php $urlRe = $this->baseUrl . "../M04/19";?>
        <li id="Phe_duyet" href="<?=$urlRe;?>"  onclick="selectHead('<?=$urlRe;?>','Phe_duyet','19')" >Phê duyệt</li>

	<!--QUAN TRI-->	
	<?php 
		$urlRe = $this->baseUrl . "../listxml/listtype/#index/";?>
	<li  id ="header_admin" href = "<?=$urlRe;?>"  onclick="selectHead('<?=$urlRe;?>','ADMIN','listtype')" >Quản trị hệ thống</li>
	
	<!--THOAT -->
	<?php $urlRe = $this->baseUrl . "../logout/index";?>	
	<li  id ="header_logout"  onclick="href('<?=$urlRe;?>')"><?=$arrConst['_THOAT']?></li>
	
</ul>
<script type="text/javascript">
	<?php $sCurrentModulCode = $this->currentModulCode;?>
	CurrentModulCode = '<?=$sCurrentModulCode?>';
	setHeaderMenu(CurrentModulCode);
	//
	function setHeaderMenu(CurrentModulCode){
		$('div#main-header').find('li').removeClass('selected');
		switch(CurrentModulCode){
			case "Tiep_nhan":
                                document.getElementById("Tiep_nhan").className="selected";
                                break;
                        case "Tham_muu":
                                document.getElementById("Tham_muu").className="selected";
                                break;
                        case "thu_ly":
                                document.getElementById("thu_ly").className="selected";
                                break;
                        case "Phe_duyet":
                                document.getElementById("Phe_duyet").className="selected";
                                break;

			case "ADMIN":
				document.getElementById('header_admin').className="selected";
				break;
		}
	}
	//
	function open_document(){
		window.open("<?php echo $this->baseUrl; ?>/huongdansudung/HDSD -phan mem qlht huyen thuy nguyen.doc")
	}
	//
	function href(url){
		window.location.href = url;
	}
</script>